ajaxLib = function (url,async,callbackFn) {
	var getHTTPRequestObject = function () {
	  var xmlHttpRequest;
	  /*@cc_on
	  @if (@_jscript_version >= 5)
	  try {
		xmlHttpRequest = new ActiveXObject("Msxml2.XMLHTTP");
	  } catch (exception1) {
		try {
		  xmlHttpRequest = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (exception2) {
		  xmlHttpRequest = false;
		}
	  }
	  @else
		xmlhttpRequest = false;
	  @end @*/
	 
	  if (!xmlHttpRequest && typeof XMLHttpRequest != 'undefined') {
		try {
		  xmlHttpRequest = new XMLHttpRequest();
		} catch (exception) {
		  xmlHttpRequest = false;
		}
	  }
	  return xmlHttpRequest;
	}
	
	var httpRequester = getHTTPRequestObject();
	var callback = callbackFn;

  	if (typeof httpRequester == 'object') {
		httpRequester.open("GET",url+'/t/'+Math.floor( 100000*Math.random() ),async);
		if (async) {
			httpRequester.onreadystatechange = function () {
					if (httpRequester.readyState == 4) {
					// если статус равен 200 (OK)
					  if (httpRequester.status == 200) {
						callback(httpRequester.responseText);
					  } else {
						alert('ajaxLib Error. Bad server response');
					  }
					}
				};
		}
		
		httpRequester.send(null);
		
		if (!async) {
			if (httpRequester.status == 200) {
				callback(httpRequester.responseText);
			  } else {
				alert('ajaxLib Error. Bad server response');
			  }
		}
	}
	
}		

